home *** CD-ROM | disk | FTP | other *** search
- #include "DeskLib:Event.h"
-
- #include "Shell.WaitClick.h"
- #include "Shell.Shell.h"
-
-
- static BOOL paused;
-
-
-
- static BOOL ClickHandler( event_pollblock *event, void *reference)
- {
- UNUSED( event);
- UNUSED( reference);
-
- paused = FALSE;
- return TRUE;
- }
-
-
- void Shell_WaitClick( void)
- {
- paused = TRUE;
- Event_Claim( event_CLICK, event_ANY, event_ANY, ClickHandler, NULL);
-
- do Shell_Poll();
- while (paused);
-
- Event_Release( event_CLICK, event_ANY, event_ANY, ClickHandler, NULL);
-
- return;
- }
-